﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.Serialization.Formatters.Binary;
using System.Text;
using SqlSugar;

namespace Model
{
    ///<summary>
    ///客户信息
    ///</summary>
    [Serializable]
    [SugarTable("CustomerMain")]
    public partial class CustomerMain
    {
           public CustomerMain(){


           }
           /// <summary>
           /// Desc:客户信息主键
           /// Default:
           /// Nullable:False
           /// </summary>           
           [SugarColumn(IsPrimaryKey=true)]
           public Guid Id {get;set;}

           /// <summary>
           /// Desc:客户编号
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string CustomerCode {get;set;}

           /// <summary>
           /// Desc:客户名称
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string CustomerName {get;set;}

           /// <summary>
           /// Desc:客户来源
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string CustomerOrigin {get;set;}

           /// <summary>
           /// Desc:客户类别
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string CustomerType {get;set;}

           /// <summary>
           /// Desc:客户行业
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string CustomerTrades {get;set;}

           /// <summary>
           /// Desc:电子邮箱
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string CustomerEmail {get;set;}

           /// <summary>
           /// Desc:经营地址
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string CustomerOperateAddress {get;set;}

           /// <summary>
           /// Desc:注册地址
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string CustomerSignAddress {get;set;}

           /// <summary>
           /// Desc:客户等级
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string CustomerLevel {get;set;}

           /// <summary>
           /// Desc:客户属性
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string CustomerAttribute {get;set;}

           /// <summary>
           /// Desc:统一信用代码
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string CustomerCreditCode {get;set;}

           /// <summary>
           /// Desc:最后所属业务员
           /// Default:
           /// Nullable:True
           /// </summary>           
           public Guid? CustomerLastSalesman {get;set;}

           /// <summary>
           /// Desc:分数1
           /// Default:
           /// Nullable:True
           /// </summary>           
           public decimal? CustomerDegree1 {get;set;}

           /// <summary>
           /// Desc:分数2
           /// Default:
           /// Nullable:True
           /// </summary>           
           public decimal? CustomerDegree2 {get;set;}

           /// <summary>
           /// Desc:自定义文本1
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string CustomerUserDefine1 {get;set;}

           /// <summary>
           /// Desc:自定义文本2
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string CustomerUserDefine2 {get;set;}

           /// <summary>
           /// Desc:自定义文本3
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string CustomerUserDefine3 {get;set;}

           /// <summary>
           /// Desc:自定义文本4
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string CustomerUserDefine4 {get;set;}

           /// <summary>
           /// Desc:自定义文本5
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string CustomerUserDefine5 {get;set;}

           /// <summary>
           /// Desc:自定义文本6
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string CustomerUserDefine6 {get;set;}

           /// <summary>
           /// Desc:自定义文本7
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string CustomerUserDefine7 {get;set;}

           /// <summary>
           /// Desc:自定义文本8
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string CustomerUserDefine8 {get;set;}

           /// <summary>
           /// Desc:自定义文本9
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string CustomerUserDefine9 {get;set;}

           /// <summary>
           /// Desc:自定义文本10
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string CustomerUserDefine10 {get;set;}

           /// <summary>
           /// Desc:自定义数字11
           /// Default:
           /// Nullable:True
           /// </summary>           
           public decimal? CustomerUserDefine11 {get;set;}

           /// <summary>
           /// Desc:自定义数字12
           /// Default:
           /// Nullable:True
           /// </summary>           
           public decimal? CustomerUserDefine12 {get;set;}

           /// <summary>
           /// Desc:自定义数字13
           /// Default:
           /// Nullable:True
           /// </summary>           
           public decimal? CustomerUserDefine13 {get;set;}

           /// <summary>
           /// Desc:自定义数字14
           /// Default:
           /// Nullable:True
           /// </summary>           
           public decimal? CustomerUserDefine14 {get;set;}

           /// <summary>
           /// Desc:自定义数字15
           /// Default:
           /// Nullable:True
           /// </summary>           
           public decimal? CustomerUserDefine15 {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string CreateUser {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public DateTime? CreateTime {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string ModifyUser {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public DateTime? ModifyTime {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public bool? IsDeleted {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public DateTime? DeletedTime {get;set;}

        [SugarColumn(IsIgnore = true)]
        public bool isDistributed { get; set; }

        [SugarColumn(IsIgnore = true)]
        public List<CustomerContract> customerContractList { get; set; }
        [SugarColumn(IsIgnore = true)]
        public List<CustomerDeliver> customerDeliverList { get; set; }
        [SugarColumn(IsIgnore = true)]
        public List<CustomerFinance> customerFinanceList { get; set; }

    }
}
